package com.usian.yygh.repository;

import com.usian.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author:WGG
 * @Date 2023年01月08日 21:57
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getDepartmentByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
